package org.csu.mypetstore.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

@Data
@TableName("mycart")
public class Cart implements Serializable {
    @Serial
    private static final long serialVersionUID = 4236908164407803594L;
    @TableField("user")
    private String userId;
    @TableField("iditem")
    private String itemId;
    private int quantity;


    @TableField(exist = false)
    private Item item;
    @TableField(exist = false)
    private Product product;
    @TableField(exist = false)
    private Category category;


}
